package org.jeecg.modules.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.SysAnnouncement;

/**
 * @Description: 系统通告表
 * @Author: jeecg-boot
 * @Date: 2019-01-02
 * @Version: V1.0
 */
public interface ISysAnnouncementService extends IService<SysAnnouncement> {

    /**
     * saveAnnouncement
     *
     * @param sysAnnouncement
     */
    void saveAnnouncement(SysAnnouncement sysAnnouncement);

    /**
     * upDateAnnouncement
     *
     * @param sysAnnouncement
     * @return
     */
    boolean upDateAnnouncement(SysAnnouncement sysAnnouncement);

    /**
     * saveSysAnnouncement
     *
     * @param title
     * @param msgContent
     */
    void saveSysAnnouncement(String title, String msgContent);

    /**
     * querySysCementPageByUserId
     *
     * @param page
     * @param userId
     * @param msgCategory
     * @return
     */
    Page<SysAnnouncement> querySysCementPageByUserId(Page<SysAnnouncement> page, String userId, String msgCategory);

}
